<%--
  Created by IntelliJ IDEA.
  User: MadFrog
  Date: 2016/11/22
  Time: 9:58
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<html>
<head>
    <title>应用系教工活动管理系统</title>
    <%@include file="../common/_head.jsp"%>
</head>
<body ontouchstart>
<header class='demos-header'>
    <h1 class="demos-title">每周看看应用系公众号</h1>
    <p class='demos-sub-title'></p>
</header>

<div class="weui-grids">
    <a href="vote" class="weui-grid">
        <div class="weui-grid__icon">
            <img src="${ctx}/resources/wechat/images/icon_nav_panel.png" alt="">
        </div>
        <p class="weui-grid__label">选举投票</p>
    </a>
    <a href="userSignIn/listEffectSignIn" class="weui-grid">
        <div class="weui-grid__icon">
            <img src="${ctx}/resources/wechat/images/icon_nav_toast.png" alt="">
        </div>
        <p class="weui-grid__label">
            签到
        </p>
    </a>
    <%--<a href="questionnaireIndex" class="weui-grid">--%>
        <%--<div class="weui-grid__icon">--%>
            <%--<img src="${ctx}/resources/wechat/images/icon_nav_city.png" alt="">--%>
        <%--</div>--%>
        <%--<p class="weui-grid__label">--%>
            <%--问卷调查--%>
        <%--</p>--%>
    <%--</a>--%>
    <%--<a href="mentalIndex" class="weui-grid">--%>
        <%--<div class="weui-grid__icon">--%>
            <%--<img src="${ctx}/resources/wechat/images/icon_nav_cell.png" alt="">--%>
        <%--</div>--%>
        <%--<p class="weui-grid__label">--%>
            <%--心理测评--%>
        <%--</p>--%>
    <%--</a>--%>
    <a href="aboutMe" class="weui-grid">
        <div class="weui-grid__icon">
            <img src="${ctx}/resources/wechat/images/icon_nav_city.png" alt="">
        </div>
        <p class="weui-grid__label">
            我的信息
        </p>
    </a>
    <a href="aboutDeveloper" class="weui-grid">
        <div class="weui-grid__icon">
            <img src="${ctx}/resources/wechat/images/icon_nav_city.png" alt="">
        </div>
        <p class="weui-grid__label">
            技术支持
        </p>
    </a>
</div>

<%@include file="../common/_foot.jsp"%>
<!--调用微信JS借口需引入JS文件-->
<script type="text/javascript" src="http://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
<script type="text/javascript" src="${ctx}/resources/wechat/js/wxConfig.js"></script>
<script type="text/javascript">
    // 活动签到函数
    function eventSignIn() {
        wx.ready(function () {
            wx.scanQRCode({
                needResult: 1,
                desc: 'scanQRCode desc',
                success: function (res) {
                    if(res.errMsg === "scanQRCode:ok"){
                        window.location.href = res.resultStr;
                    }
                }
            });
        });
    }
</script>

<div class="weui-footer weui-footer_fixed-bottom">
    <p class="weui-footer__text">
        Copyright © 2016-2018 应用技术系<br>
        四川幼儿师范高等专科学校
    </p>
</div>
</body>
</html>
